﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AuthTemplate.Infrastructure.Token
{
    public class TokenInfo
    {
        public TokenInfo()
        {
            iss = "签发者信息";
            aud = "http://example.com";
            sub = "HomeCare.VIP";
            jti = DateTime.Now.ToString("yyyyMMddhhmmss");
        }

        #region 默认字段
        public string iss { get; set; }
        public double iat { get; set; }
        public double exp { get; set; }
        public string aud { get; set; }
        public string sub { get; set; }
        public string jti { get; set; }
        #endregion

        #region 用户信息 ,一般情况下只需要赋值用户信息
        public string UserID { get; set; }
        public string UserName { get; set; }
        public string UserRole { get; set; }
        #endregion
    }
}
